﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="Aowork">
    <meta name="description" content="">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no">

    <title></title>

    <link href="../css/mobile.css" rel="stylesheet" />

    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
    <script src="../js/zepto.min.js"></script>
    <script src="../js/zepto.swipe.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/config.js"></script>
    <script src="../js/uiExtend.js"></script>
    <script src="../js/wx_config.js"></script>

    <script type="text/javascript">
        jc.fnInit.push(function () {
            jc.ui.header.trigger("updateTitle", "支付结果");
        });
    </script>

    <script type="text/javascript">
        /* 486091382314762240 */
        var orderId = jc.tools.getParam("orderId");
        console.log(orderId);

        jc.fnInit.push(function () {

            jc.ui.header.trigger("getUser", function (user) {
                $.getJSON(window.path.getOrder, {
                    accessToken: user.accessToken,
                    userId: user.uid,
                    orderId: orderId
                },
                function (result) {
                    if (result.success) {
                        console.log(result);
                        jc.ui.orderHolder.trigger("setup", [result.data]);
                    }
                    else {
                        window.errorRouter(result.desc);
                    }
                });


            });

        });


    </script>

</head>
<body>

    <div data-ui="header" class="J_header">
        <div class="h_inner"></div>
    </div>

    <div class="bgfff bb1">
        <div class="J_success">
            <div class="s_title">
                <i class="icon"></i>
                <span>恭喜你!成功购买课程</span>
            </div>
        </div>

        <div data-ui="orderHolder" data-keyword="title,price,label,signAmount" data-router="" class="J_orderHolder">

        </div>

        <div class="p10">
            <div class="J_btnGroup">
                <a class="abtn orange" onclick="window.location.replace(window.ctx + 'home/courseList.html');" href="javascript:;">查看我的课程</a>
            </div>
        </div>

    </div>
</body>
</html>
